const state = {
  amapInfoList: [] // 位置信息列表
}

const getters = {
  amapInfoList: state => state.amapInfoList
}

const actions = {
  fetchAmapInfoList: ({ commit, state }, text) => {
    commit('updateAmapInfoListState', text)
  }
}

const mutations = {
  updateAmapInfoListState: (state, payload) => {
    state.amapInfoList = payload
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
